工欲善其事 its prerequisiteThe Java development in the eyes of Stormy, an old Domino programmer, I mentioned the large number of logs that are being encountered in Java development. Server Console Brush-like scrolling, log files grow rapidly, debug when the relevant information is often flooded with examples, in many logger gushing output, to find out where the error
Knowledge in this article involves:Crystal report 9Applicable:All VersionsJava ViewerComparison
Outline
Some crystal decisions products provide two Java viewer types:
· (Intelligent) Java Viewer
· Java Plug-In Viewer
What is the d
The knowledge in this article involves:Crystal Report 9Apply to:All versionsJava ViewerComparisonOutlineSome Crystal decisions products offer two kinds of Java viewers:· Intelligent Java Viewer· Java Plug-in ViewerWhat's the difference between the two viewers?SolutionWhen you select the (smart)
Assembly Binding Log Viewer (Fuslogvw.exe)
The Assembly Binding Log Viewer displays detailed information about the failed assembly bindings. This information helps you diagnose why the. NET Framework cannot find an assembly at run time. These failures are usually caused by an assembly deployment to the wrong location
Carly Jacobson wrote that the server log is a log file created and updated by a server. A common example is the access log generated by Apache (open source Web server software), which provides a history of Web page requests. However, Apache does not just collect access information, it also collects information about error logs, and collects ID file processes, scr
When problems occur with our Windows system, the simplest way to analyze and locate failures is to use Event Viewer, such as Event Viewer in Windows XP, to let us analyze system logs, application logs, and security logs to find clues to possible problems. However, objectively speaking, before the Windows version includes the Windows XP Event Viewer in the use of
What if the event log file is corrupted?
As one of the administrative tools included in the Microsoft Management Console, Event Viewer is used to maintain log information on your computer for related programs, security features, and system events. You can browse and manage event logs through Event Viewer, collect va
Apache Log Viewer is a relatively good log analysis software abroad, there is no Chinese version of the download. Analysis interface as shown:
You can customize the view of the breakdown information, such as IP, address, access date, access page, access status, routing address, browse identification (User Agent) as shown: (Open step: Edit->preferences->c
You can use the Event Log Service in the event viewer to view the computer's on and off time. Because the Event Log service starts and closes along with the computer, and records the event log.
It is necessary to introduce two IDCs: 6006 and 6005. In the event viewer, an
TM Chat Log viewer (hint: Register 1 sets, can be used on 3 pcs) The software can view TM chat records without a password.
Use the method, run directly, then select the TM number you want to read, and then click the number you want to view the chat record. The software can see the previous chat record of installing the software.
Note: The software must be installed to the target number to use the computer
The SharePoint ULS Log Viewer project description is a Windows application that makes it easier to view SharePoint ULS log files. Supports filtering and simple views.Information: This is a WPF application, which is supported by LINQ. The current version has the following features: 1. Convert and open multiple SharePoint ULS logs (if multiple or merged logs are se
started with the following SQL statement:SELECT * FROM Msdb.dbo.sysjobhistorywhere step_id=0 and job_id= (select job_id from msdb.dbo.sysjobs where [name]= ' Job name ')and run_dateBecause I added a step_id query condition, so the first time cleaning did not clean up, the actual amount of data is still very large, because only delete a state of the2, to delete:Delete from Msdb.dbo.sysjobhistorywhere job_id= (select job_id from msdb.dbo.sysjobs where [name]= ' Job name ')and run_dateBecause my j
Looking at the logs under Linux, using Tail, grep, find and other commands is also more convenient, later need to deal with some problems in Windows, found that the lack of similar features, such as TAILF real-time output, so on the internet collected a number of related gadgets, hoping to help everyone.These tools are divided into two categories, one that mimics the behavior of Linux on Windows, and uses similar commands to solve them, such as:
Tail for windows:http://www.trisunsoft.co
. Typically implemented with a subclass. If necessary, the specific observer role can save a reference to a specific topic role.The following is the sample code:/** * Abstract Theme characters * @author Dream * */public interface watched {public void Addwatcher (Watcher watcher);p ublic void REMWATC Her (watcher watcher);p ublic void Notifywatcher (String str);}/** * Abstract Viewer role * @author Dream * */public interface Watcher {public void updat
(This.getclass (). GetName () + "Print:invoke Actionperformed method "); Logineventsource les= (Logineventsource) e;//according to username and Passowrd,call Callback methodif (Les.getusername ( ). Equals (USERNAME) les.getpassword () equals (PASSWORD)) {les. Loginsuccess ();} Else{les. Loginfail ();}}}In this case, we also need a class to register the Listener class with the event source, so. The event source, the U-layer, is able to send messages to the service layer, where we will put this c
program to the simulator, as follows:To add a contact to the system contact, send a text message to this contact, as follows:Observe the Logcat print log as follows:09-15 07:42:33.109:i/system.out (644): The SMS database has changed.09-15 07:42:34.739:i/system.out (644): The SMS database has changed.09-15 07:42:35.189:i/system.out (644): The SMS database has changed.We enter a text message sent, will print three logs, that is, the onchange () method
{@Overridepublic void update (Observable O, object arg) {System.out.println ( Arg.tostring () + "Watcher2");}} public class Observabletest {public static void main (string[] args) {beingwatched watched = new beingwatched (); Watcher1 w1 = new Watcher1 (); Watcher2 w2 = new Watcher2 (); Watched.addobserver (W1); Watched.addobserver (W2); Watched.observername ("I AM The Observer:");}}Print:I am the Observer: WATCHER2 I AM the Observer: Watcher1 Four. Application of the Observer:1). Updates to a
(Observer OB);//delete observer method void Removeobserver (Observer ob);//Notify All observers void Notifyobservers ();} Leadership Class Leader implements subject{//pool for all observers: Thread synchronization class Vectorprivate vector2.3 Testingpublic class Test {public static void main (string[] args) {//TODO auto-generated method stub Subject leader=new L Eader (); Student stu1=new Student ("Zhang students"); Teacher t1=new Teacher ("Miss Li"); Added into the Ob
of a one-to-many system design.(4) The observer pattern satisfies the requirement of "open and close principle", adding the new observer does not need to modify the original system code, and it is convenient to add new observation target when there is no correlation between the specific observer and the observation target.The disadvantage of the observer patternThe main disadvantages of the observer pattern are as follows:(1) If a target object has many direct and indirect observers, all observ
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.